/* =========================================================
   01. IMPORTS
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@200;300;400;500;600;700;800&display=swap');
@import url(../icons/font-awesome/css/font-awesome.min.css);
@import url(../icons/simple-line-icons/css/simple-line-icons.css);
@import url(../icons/weather-icons/css/weather-icons.min.css);
@import url(../icons/linea-icons/linea.css);
@import url(../icons/themify-icons/themify-icons.css);
@import url(../icons/flag-icon-css/flag-icon.min.css);
@import url(../icons/material-design-iconic-font/css/materialdesignicons.min.css);
@import url(spinners.css);
@import url(animate.css);

div[style*="position: fixed"][style*="bottom: 0"]{
display:none !important;
}
/* =========================================================
   02. ROOT VARIABLES
========================================================= */
:root {
  --sidebar-width: 270px;
  --sidebar-mini-width: 84px;
  --header-height: 74px;
  --footer-height: 56px;

  --primary: #243B2B;
  --primary-dark: #1d3124;
  --accent: #2f4c39;

  --white: #ffffff;
  --body-bg: #f5f7fb;
  --light-bg: #f8fafc;
  --border-color: #e7edf5;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --text-light: #99abb4;

  --danger: #f44336;
  --warning: #ffb22b;
  --success: #4caf50;
  --info: #1976d2;
  --purple: #5c4ac7;

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* =========================================================
   03. RESET / BASE
========================================================= */
* {
  box-sizing: border-box;
  outline: none;
}

html {
  min-height: 100%;
  background: var(--white);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--body-bg);
  color: #67757c;
  font-family: 'Work Sans', sans-serif !important;
  top: 0 !important;
}

a,
button {
  outline: none !important;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

a {
  color: var(--text-light);
}

a:hover,
a:focus,
button:hover,
button:focus {
  color: #252525;
  text-decoration: none !important;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

p {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  color: var(--text-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   04. TYPOGRAPHY
========================================================= */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 600;
  color: var(--text-dark);
}

h1 { font-size: 36px; line-height: 40px; }
h2 { font-size: 24px; line-height: 36px; }
h3 { font-size: 21px; line-height: 30px; }
h4 { font-size: 18px; line-height: 22px; }
h5 { font-size: 16px; line-height: 18px; }
h6 { font-size: 14px; line-height: 16px; }

.display-5 { font-size: 3rem; }
.display-6 { font-size: 36px; }

/* =========================================================
   05. UTILITIES
========================================================= */
.hide,
.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden !important;
}

.dib {
  display: inline-block;
}

.text-white { color: #ffffff !important; }
.text-muted { color: #99abb4 !important; }
.text-danger { color: #f44336 !important; }
.text-warning { color: #ffb22b !important; }
.text-success { color: #4caf50 !important; }
.text-info { color: #1976d2 !important; }
.text-primary { color: #242c6d !important; }
.text-dark { color: #444c67 !important; }

.bg-white { background: #ffffff !important; }
.bg-light { background: #f2f4f8 !important; }
.bg-primary { background: var(--primary) !important; color: #ffffff !important; }
.bg-success { background: #1c862d !important; color: #ffffff !important; }
.bg-info { background: #62d1f3 !important; color: #ffffff !important; }
.bg-warning { background: #ffb22b !important; color: #ffffff !important; }
.bg-danger { background: #f44336 !important; color: #ffffff !important; }

.radius { border-radius: 4px; }
.radius-0 { border-radius: 0; }
.img-circle { border-radius: 50%; }
.box-shadow { box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important; }

.thumb-sm { width: 32px; height: 32px; }
.thumb-md { width: 48px; height: 48px; }
.thumb-lg { width: 88px; height: 88px; }

/* =========================================================
   06. MAIN LAYOUT FIX
========================================================= */
#main-wrapper {
  width: 100%;
  min-height: 100vh;
  background: var(--body-bg);
}

.page-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--body-bg);
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: calc(var(--footer-height) + 24px);
  transition: all 0.3s ease;
}

.container-fluid {
  width: 100%;
  padding: 0 24px 0;
}

/* =========================================================
   07. PROFESSIONAL HEADER FIXED
========================================================= */
.header {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--header-height);
  z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.top-navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
}

.top-navbar .dropdown-toggle::after {
  display: none;
}

/* Header Left */
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.sidebartoggler {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f6fb;
  color: var(--primary) !important;
  font-size: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.sidebartoggler:hover {
  background: #e9eef6;
  color: var(--primary) !important;
}

.header-brand {
  display: flex;
  align-items: center;
  padding-right: 14px;
  border-right: 1px solid #edf1f7;
}

.navbar-header {
  display: flex;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.logo-box {
     display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.logo-img {
    max-width: 100px;   /* 🔥 perfect size */
    width: 100%;
    height: auto;
    object-fit: contain;
}

.login-form h4 {
    font-weight: 600;
    color: #222;
}

.header-page-title {
  min-width: 0;
}

.header-page-title h4 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-dark);
}

.header-page-title span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header Center */
.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.header-search-box {
  width: 100%;
  max-width: 560px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: none;
}

.header-search-box i {
  color: #94a3b8;
  font-size: 15px;
}

.header-search-box input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: #334155;
  font-size: 14px;
  font-family: 'Work Sans', sans-serif;
}

.header-search-box input::placeholder {
  color: #94a3b8;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  background: #f6f9fc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
}

.header-support i {
  color: var(--primary);
  font-size: 14px;
}

.header-right .navbar-nav {
  display: flex;
  align-items: center;
  margin: 0;
}

.user-dropdown {
  display: flex;
  align-items: center;
}

.user-profile {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 6px 8px !important;
  border-radius: 14px;
  background: #ffffff;
}

.user-profile:hover {
  background: #f8fafc;
}

.user-info {
  text-align: right;
  line-height: 1.1;
}

.user-info .user-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.user-info small {
  font-size: 11px;
  color: #6b7280;
}

.profile-pic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e6edf5;
}

.header .dropdown-menu {
  min-width: 200px;
  margin-top: 14px;
  border: none;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.dropdown-user {
  padding: 8px 0;
}

.dropdown-user li a {
  display: block;
  padding: 11px 16px;
  font-size: 14px;
  color: #475569;
}

.dropdown-user li a i {
  width: 18px;
  margin-right: 8px;
}

.dropdown-user li a:hover {
  background: #f8fafc;
  color: var(--primary);
}

/* =========================================================
   08. SIDEBAR
========================================================= */
.left-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #cbd5e1;
  box-shadow: 8px 0 30px rgba(2, 6, 23, 0.18);
  z-index: 1000;
  border-right: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.sidebar-brand {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  z-index: 2;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.brand-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.25);
}

.brand-text h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.brand-text p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.3;
}

.scroll-sidebar {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 14px 12px 90px;
  scroll-behavior: smooth;
}

.scroll-sidebar::-webkit-scrollbar {
  width: 6px;
}

.scroll-sidebar::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 20px;
}

.scroll-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #64748b;
  font-weight: 700;
  padding: 18px 12px 10px;
}

.sidebar-item {
  margin-bottom: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  color: #cbd5e1 !important;
  font-size: 14px;
  font-weight: 600;
  position: relative;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff !important;
  transform: translateX(3px);
}

.sidebar-item.active > .sidebar-link {
  background: linear-gradient(90deg, rgba(34,197,94,0.18), rgba(34,197,94,0.08));
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.18);
}

.sidebar-item.active > .sidebar-link::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 20px;
  background: #22c55e;
}

.menu-icon {
  width: 20px;
  min-width: 20px;
  text-align: center;
  font-size: 16px;
}

.menu-text {
  flex: 1;
  white-space: nowrap;
}

.menu-arrow {
  font-size: 16px;
  color: #94a3b8;
  transition: transform 0.25s ease;
}

.sidebar-item.open > .sidebar-link .menu-arrow {
  transform: rotate(90deg);
  color: #ffffff;
}

.sidebar-submenu {
  display: none;
  margin-top: 6px;
  padding: 6px 0 6px 44px;
}

.sidebar-submenu.show {
  display: block;
}

.sidebar-submenu li {
  margin-bottom: 4px;
}

.sidebar-submenu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: #94a3b8 !important;
  font-size: 13px;
  font-weight: 500;
}

.sidebar-submenu li a:hover {
  background: rgba(255,255,255,0.05);
  color: #ffffff !important;
  padding-left: 18px;
}

.sidebar-submenu li.active a {
  background: rgba(34, 197, 94, 0.12);
  color: #ffffff !important;
  font-weight: 600;
}

/* =========================================================
   09. PAGE TITLES / BREADCRUMB
========================================================= */
.page-titles {
  position: relative;
  z-index: 10;
  margin: 0 0 24px;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.page-titles h3 {
  margin: 0;
  color: var(--text-dark);
}

.page-titles .breadcrumb {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  font-size: 14px;
}

.page-titles .breadcrumb .breadcrumb-item + .breadcrumb-item:before {
  content: "\e649";
  font-family: themify;
  color: #a6b7bf;
  font-size: 11px;
}

/* =========================================================
   10. CONTENT AREA FIX
========================================================= */
.content-body,
.content-wrapper,
.dashboard-content,
.main-content,
.page-content {
  width: 100%;
}

.row {
  margin-left: -12px;
  margin-right: -12px;
}

.row > [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 24px;
}

/* Blue background ko neutralize karne ke liye */
.dashboard,
.dashboard-area,
.statistics-area,
.stats-area,
.summary-area {
  background: transparent !important;
}

/* =========================================================
   11. CARDS FIX
========================================================= */
.card {
  margin: 0 0 24px;
  padding: 20px;
  background: #ffffff;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: 0;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  color: var(--text-dark);
}

.card-subtitle {
  margin: 10px 0;
  font-size: 12px;
  color: var(--text-light);
}

/* Dashboard stat cards */
.dashboard .card,
.dashboard-stat,
.stat-card,
.sales-report {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard .card .media,
.dashboard .card .media-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard .card .media-body {
  flex-direction: column;
  align-items: flex-start;
}

.dashboard .card .media-body h2 {
  margin: 0 0 6px;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  color: #2f3a7a;
}

.dashboard .card .media-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: #2d3358 !important;
}

.dashboard .card i,
.dashboard .card .icon,
.dashboard .card .icon-box {
  font-size: 22px;
  color: #2d3358;
}

/* equal boxes look */
.dashboard .col-xl-3 .card,
.dashboard .col-lg-3 .card,
.dashboard .col-md-3 .card,
.dashboard .col-xl-4 .card,
.dashboard .col-lg-4 .card,
.dashboard .col-md-4 .card {
  min-height: 165px;
}

/* =========================================================
   12. TABLES
========================================================= */
.table {
  margin-bottom: 0;
  background: #ffffff;
}

.table td,
.table th {
  padding: 0.75rem;
}

.table > thead > tr > th {
  border-bottom: 1px solid #e7e7e7;
  font-weight: 600;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
  line-height: 28px;
  vertical-align: middle;
}

thead tr th {
  color: #455a64;
  font-weight: 600;
}

tbody tr td {
  color: #6b7280;
  font-family: 'Work Sans', sans-serif;
}

/* =========================================================
   13. BUTTONS
========================================================= */
.btn {
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 500;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 12px;
}

.btn-primary {
  background: #5c4ac7;
  border: 1px solid #5c4ac7;
  color: #ffffff;
}

.btn-success {
  background: #4caf50;
  border: 1px solid #4caf50;
  color: #ffffff;
}

.btn-info {
  background: #1976d2;
  border: 1px solid #1976d2;
  color: #ffffff;
}

.btn-warning {
  background: #ffb22b;
  border: 1px solid #ffb22b;
  color: #ffffff;
}

.btn-danger {
  background: #f44336;
  border: 1px solid #f44336;
  color: #ffffff;
}

/* =========================================================
   14. FORMS
========================================================= */
.form-group {
  margin-bottom: 20px;
}

label {
  margin-bottom: 10px;
  font-weight: 500;
  color: #475569;
}

.form-control {
  height: 44px;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  box-shadow: none;
  font-family: 'Work Sans', sans-serif;
  padding: 10px 14px;
}

.form-control:focus,
.form-control:hover {
  border-color: #b7c2d0;
  box-shadow: none;
}

textarea.form-control,
textarea {
  resize: none;
  min-height: 110px;
}

/* =========================================================
   15. BADGES / LABELS
========================================================= */
.badge {
  font-weight: 500;
}

.badge-success { background-color: #4caf50; }
.badge-info { background-color: #1976d2; }
.badge-primary { background-color: #5c4ac7; }
.badge-warning { background-color: #ffb22b; }
.badge-danger { background-color: #f44336; }

.label {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 75%;
  font-weight: 400;
  line-height: 13px;
  color: #ffffff;
}

/* =========================================================
   16. FOOTER FIX
========================================================= */
.footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: var(--sidebar-width);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--footer-height);
  padding: 0 18px;
  margin: 0;
  background: #ffffff;
  color: #67757c;
  border-top: 1px solid #eceff1;
  transition: all 0.3s ease;
}

/* =========================================================
   17. LOGIN
========================================================= */
.login-logo {
  text-align: center;
  margin-bottom: 15px;
}

.login-logo img {
  height: 75px;
}

.login-content {
  margin: 50px 0 35px;
}

.login-form {
  background: #ffffff;
  padding: 40px 45px 60px;
  border: 2px solid #242c6d;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.login-form h4 {
  margin-bottom: 40px;
  text-align: center;
  color: #455a64;
}

.login-form .btn {
  width: 100%;
  padding: 15px;
  font-size: 14px;
  text-transform: uppercase;
  border: 0;
}

/* =========================================================
   18. LOADER
========================================================= */
#page {
  display: block;
  min-height: 100vh;
}

#loading {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: #fff;
  background-image: url("../uploadImage/PENLEAD.gif");
  background-repeat: no-repeat;
  background-position: center;
}

/* =========================================================
   19. MINI SIDEBAR
========================================================= */
.mini-sidebar .header {
  left: var(--sidebar-mini-width) !important;
}

.mini-sidebar .left-sidebar {
  width: var(--sidebar-mini-width) !important;
}

.mini-sidebar .page-wrapper {
  margin-left: var(--sidebar-mini-width) !important;
}

.mini-sidebar .footer {
  left: var(--sidebar-mini-width) !important;
}

.mini-sidebar .sidebar-brand {
  padding: 14px 10px;
}

.mini-sidebar .brand-logo {
  justify-content: center;
}

.mini-sidebar .brand-text,
.mini-sidebar .nav-section-title,
.mini-sidebar .menu-text,
.mini-sidebar .menu-arrow,
.mini-sidebar .sidebar-submenu {
  display: none !important;
}

.mini-sidebar .sidebar-link {
  justify-content: center;
  padding: 14px 10px;
}

.mini-sidebar .menu-icon {
  margin: 0;
  width: auto;
  min-width: auto;
  font-size: 18px;
}

.mini-sidebar .sidebar-item.active > .sidebar-link::before {
  left: 6px;
  top: 8px;
  bottom: 8px;
}

/* =========================================================
   20. SPECIFIC SCREENSHOT FIXES
========================================================= */

/* Header ke neeche extra blank gap hatao */
.page-wrapper > .container-fluid:first-child,
.page-wrapper .container-fluid:first-child {
  padding-top: 0;
}

/* Dashboard search/profile ko same line pe better spacing */
.dashboard .header-search-box,
.dashboard .search-box,
.dashboard .search-area {
  margin-bottom: 0;
}

/* Admin profile block */
.admin-profile-wrap,
.user-profile-box,
.profile-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

/* Any large blue wrapper around stats ko normal karo */
[class*="blue-bg"],
[class*="dashboard-bg"],
[class*="stats-bg"],
[class*="summary-bg"] {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* boxes ko evenly stretch karo */
.dashboard .row {
  display: flex;
  flex-wrap: wrap;
}

.dashboard .row > [class*="col-"] {
  display: flex;
}

.dashboard .row > [class*="col-"] > .card,
.dashboard .row > [class*="col-"] > div > .card {
  width: 100%;
}

/* =========================================================
   21. RESPONSIVE
========================================================= */
@media (max-width: 1023px) {
  .left-sidebar {
    width: var(--sidebar-mini-width);
  }

  .header {
    left: var(--sidebar-mini-width);
  }

  .page-wrapper {
    margin-left: var(--sidebar-mini-width) !important;
  }

  .footer {
    left: var(--sidebar-mini-width);
  }

  .sidebar-nav ul li a {
    justify-content: center;
    padding-left: 15px;
    padding-right: 15px;
  }

  .sidebar-nav ul li a .hide-menu,
  .sidebar-nav ul li.nav-label,
  .sidebar-nav .has-arrow::after {
    display: none !important;
  }

  .header-brand,
  .header-page-title span,
  .header-support {
    display: none;
  }

  .header-search-box {
    max-width: 320px;
  }

  .container-fluid {
    padding: 0 20px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }

  .header {
    left: 0 !important;
    width: 100%;
  }

  .top-navbar {
    padding: 0 12px;
    gap: 10px;
  }

  .left-sidebar {
    left: -270px;
    width: var(--sidebar-width);
    padding-top: var(--header-height);
  }

  .show-sidebar .left-sidebar,
  .mini-sidebar.show-sidebar .left-sidebar {
    left: 0;
  }

  .page-wrapper,
  .mini-sidebar .page-wrapper {
    margin-left: 0 !important;
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: calc(var(--footer-height) + 16px);
  }

  .footer,
  .mini-sidebar .footer {
    left: 0;
  }

  .header-center {
    display: none;
  }

  .header-left {
    gap: 10px;
  }

  .header-page-title h4 {
    font-size: 16px;
  }

  .header-page-title span {
    display: none;
  }

  .user-info {
    display: none;
  }

  .profile-pic {
    width: 38px;
    height: 38px;
  }

  .container-fluid {
    padding: 0 15px;
  }

  .row > [class*="col-"] {
    margin-bottom: 16px;
  }

  .card {
    padding: 18px;
    border-radius: 16px;
  }

  .dashboard .card .media-body h2 {
    font-size: 34px;
  }

  .dashboard .card .media-body p {
    font-size: 14px;
  }
}
/* =========================================================
   SIDEBAR DROPDOWN FIX
========================================================= */

.sidebar-item.has-submenu > .sidebar-link {
  cursor: pointer;
}

/* submenu hidden by default */
.sidebar-submenu {
  display: none;
  margin-top: 6px;
  padding: 6px 0 6px 44px;
}

/* submenu open */
.sidebar-submenu.show {
  display: block !important;
}

/* arrow rotate */
.sidebar-item.open > .sidebar-link .menu-arrow {
  transform: rotate(90deg);
  transition: 0.3s ease;
}

/* submenu links */
.sidebar-submenu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: #94a3b8 !important;
  font-size: 13px;
  font-weight: 500;
}

.sidebar-submenu li a:hover {
  background: rgba(255,255,255,0.05);
  color: #ffffff !important;
  padding-left: 18px;
}
/* SIDEBAR SCROLLBAR */

.scroll-sidebar::-webkit-scrollbar {
  width: 6px;
}

.scroll-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-sidebar::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 20px;
}

.scroll-sidebar::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
/* SIDEBAR SCROLLBAR FIX */
.scroll-sidebar::-webkit-scrollbar {
  width: 7px;
}

.scroll-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-sidebar::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 20px;
}

.scroll-sidebar::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Firefox */
.scroll-sidebar {
  scrollbar-width: thin;
  scrollbar-color: #475569 transparent;
}
/* =========================================================
   LEAD VIEW MODAL SCROLL FIX
========================================================= */

.lead-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    padding: 30px 15px;
    overflow-y: auto;
}

.lead-modal-box {
    position: relative;
    background: #fff;
    width: 80%;
    max-width: 900px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    max-height: calc(100vh - 60px);
    overflow: hidden;
}

.lead-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 2;
}

.lead-modal-content {
    padding: 20px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* Scrollbar styling */

.lead-modal-content::-webkit-scrollbar {
    width: 8px;
}

.lead-modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.lead-modal-content::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}

.lead-modal-content::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
